declare let eManager;
const { ccclass, property } = cc._decorator;
//8-2 衣服
@ccclass
export default class YiFu extends cc.Component {
    @property
    stepName = "";
    //默认衣服
    @property(cc.Node)
    defaultClothe: cc.Node = null;
    //衣服
    @property(cc.Node)
    clotheNode: cc.Node = null;
    start() {
    };

    initData(){
        eManager.emit("HZ_SHOW_SELECT_LIST", {
            step: 8,
            point: 2,
            callback: () => {
                if(this.defaultClothe){
                    this.defaultClothe.active = false;
                }
                this.clotheNode.active = true;
                eManager.emit("DONE_STEP", 8);
                eManager.emit("MINI_DONE_STEP");
                eManager.emit("HZ_MAKE_DOT", {
                    makeup_close:8,
                    makeup_step:this.stepName
                });
            }
        });
        if(this.defaultClothe){
            this.defaultClothe.active = false;
        }
        this.clotheNode.active = true;
        eManager.emit("DONE_STEP", 8);
        eManager.emit("MINI_DONE_STEP");
        eManager.emit("HZ_MAKE_DOT", {
            makeup_close:8,
            makeup_step:this.stepName
        });
        eManager.emit("REFRESH_STEP_NAME", this.stepName);
    };

}
